function GetEntityName(entityType) {
    switch (entityType) {
    
        // Activitiy-Types
        case 'task': return 'Task';
        case 'fax': return 'Fax';
        case 'email': return 'E-mail';
        case 'phonecall': return 'Phonecall';
        case 'appointment': return 'Appointment';
        case 'letter': return 'Letter';
        case 'serviceappointment': return 'Serviceappointment';
        case 'campaignresponse': return 'Campaignresponse';
        case 'campaignactivity': return 'Campaignactivity';

        //Parent-Types
        case 'account': return 'Account';
        case 'contact': return 'Contact';
        case 'incident': return 'Case';
        case 'lead': return 'Lead';
        case 'quote': return 'Quote';
        case 'salesorder': return 'Order';
        case 'invoice': return 'Invoice';
        case 'bulkoperation': return 'Quick Campaign';
        case 'asyncoperation': return 'System Job';
        case 'opportunity': return 'Opportunity';
        case 'contract': return 'Contract';
        case 'campaign': return 'Campaign'         
    }
    return '';
}

function GetFormUrl(entityType) {
    switch (entityType) {

        // Activitiy-Types 
        case 'task': return 'activities/task/edit.aspx';
        case 'fax': return 'activities/fax/edit.aspx';
        case 'email': return 'activities/email/edit.aspx';
        case 'phonecall': return 'activities/phone/edit.aspx';
        case 'appointment': return 'activities/appointment/edit.aspx';
        case 'letter': return 'activities/letter/edit.aspx';
        case 'serviceappointment': return 'activities/serviceappointment/edit.aspx';
        case 'campaignresponse': return 'ma/campaignresponse/edit.aspx';
        case 'campaignactivity': return 'ma/campaignactivity/edit.aspx';

        //Parent-Types
        case 'account': return 'sfa/accts/edit.aspx';
        case 'contact': return 'sfa/conts/edit.aspx';
        case 'incident': return 'cs/cases/edit.aspx';
        case 'lead': return 'sfa/leads/edit.aspx';
        case 'quote': return 'sfa/quotes/edit.aspx';
        case 'salesorder': return 'sfa/salesorder/edit.aspx';
        case 'invoice': return 'sfa/invoice/edit.aspx';
        case 'bulkoperation': return 'ma/bulkoperations/edit.aspx';
        case 'asyncoperation': return 'tools/asyncoperation/edit.aspx';
        case 'opportunity': return 'sfa/opps/edit.aspx';
        case 'contract': return 'cs/contracts/edit.aspx';
        case 'campaign': return 'ma/camps/edit.aspx';
    }
    return '';
}